using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu()]
public class BuildingTypeListSO : ScriptableObject
{
    public List<BuildingTypeSO> buildingTypeSOList;

    public BuildingTypeSO none;
    public BuildingTypeSO GetBuildingTypeDataSO(BuildingTypeSO.BuildingType animationType)
    {
        foreach (BuildingTypeSO buildingTypeSO in buildingTypeSOList)
        {
            if(buildingTypeSO.buildingType == animationType)
            {
                return buildingTypeSO;
            }
        }
        Debug.Log("Could not find BuildingTypeSO for BuildingType " + animationType);
        return null;
    }

}
